package com.example.tests;

import org.testng.annotations.Test;

public class ContactModification extends TestBase {

	@Test
	public void modifySomeContact()	{
		app.getNavigationHelper().openMainPage();
		app.getContactHelper().selectEditContactByIndex(2);
		ContactData contact = new ContactData();
		contact.firstname = "new firstname";
		contact.lastname = " new lastname";
	    contact.address = "new address";
	    contact.home = "new home";
	    contact.mobile = "new mobile";
	    contact.work = "new work";
	    contact.email = "new email";
	    contact.email2 = "new email2";
	    contact.bday = "2";
	    contact.bmonth = "February";
	    contact.byear = "1987";
	    contact.new_group = "new group name 1";
	    contact.address2 = "new address2";
	    contact.phone2 = "new phone2";
	 	app.getContactHelper().fillFormContactModification(contact);
		app.getContactHelper().submitContactModification();
		app.getContactHelper().returnToHomePage();
	}
}


